require 'pp'
h = {
	"t1" => {
		"kr" => "바나나",
		"en" => "banana",
	},
	"t2" => {
		"kr" => "사과",
		"en" => "apple",
	},
	"t3" => {
		"kr" => "오렌지",
		"en" => "orange",
		"item" => {
			"i1" => "귤",
			"i2" => "낑깡",
			"i3" => "한라봉",
		},
	},
	"t4" => {
		"kr" => "포도",
		"en" => "graph",
	},
	"t5" => {
		"kr" => "수박",
		"en" => "watermelon",
		"item" => {
		},
	},
}

h.each do |k,v|
	puts '%{s1}, %{s2}, %{s3}' % {:s1=>k, :s2=>v["kr"], :s3=>v["en"]}
	if v.has_key?("item")
		v["item"].each do |kk,vv|
			#p vv
			puts '	%{s1}, %{s2}' % {:s1=>kk, :s2=>vv}
		end
	elsif v.has_value?("포도")
		puts "	와인을 만들자!"
	end
end

p h.keys
pp h